#ifndef MEMORY_H
#define MEMORY_H

#pragma once

#include "rmff.h"

void* shin_malloc_64(int);
void* shin_malloc(int);
void* shin_mallocz(unsigned int);
void* shin_realloc(void*, unsigned int);
void shin_free(void*);
void shin_freep(void *arg);

rmff_packet_t* shin_alloc_packet();
void shin_free_packet(rmff_packet_t*);

void* shin_mix_alloc();

#define DECLARE_ALIGNED(n,t,v)      t v __attribute__ ((aligned (n)))

#endif
